package bean;

import java.util.*;

// 购物车
public class Cart {
    private int cartid;
    private String username;
    private String isbn;
    private String bookname;
    private double bookprice;
    private int num;
    private String booksrc;

    public Cart(int cartid, String username, String isbn, String bookname, double bookprice, int num, String booksrc) {
        super();
        this.cartid = cartid;
        this.username = username;
        this.isbn = isbn;
        this.bookname = bookname;
        this.bookprice = bookprice;
        this.num = num;
        this.booksrc = booksrc;
    }

    public Cart(String username, String isbn, String bookname, double bookprice, int num, String booksrc) {
        super();
        this.username = username;
        this.isbn = isbn;
        this.bookname = bookname;
        this.bookprice = bookprice;
        this.num = num;
        this.booksrc = booksrc;
    }

    public int getCartid() {
        return cartid;
    }
    public void setCartid(int cartid) {
        this.cartid = cartid;
    }
    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getIsbn() {
        return isbn;
    }
    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }
    public String getBookname() {
        return bookname;
    }
    public void setBookname(String bookname) {
        this.bookname = bookname;
    }
    public double getBookprice() {
        return bookprice;
    }
    public void setBookprice(double bookprice) {
        this.bookprice = bookprice;
    }
    public int getNum() {
        return num;
    }
    public void setNum(int num) {
        this.num = num;
    }
    public String getBooksrc() {
        return booksrc;
    }
    public void setBooksrc(String booksrc) {
        this.booksrc = booksrc;
    }



}
